package com.googlecode.openrtp.spi.rtcp;

/**
 *
 * @author jocke
 */
public enum SourceDescriptionType {

    END,
    CNAME,
    NAME,
    EMAIL,
    PHONE,
    LOC,
    TOOL,
    NOTE,
    PRIV;

    public static SourceDescriptionType fromByte(byte type) {
        if(type > values().length) {
            throw new IllegalArgumentException("No such type " + type);
        }
        return values()[type];
    }
}
